// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_atom;

import android.text.TextUtils;
import com.nnee.p_f.cls_b;
import com.nnee.p_pr.p_atom.a.a;
import java.util.*;

// Referenced classes of package com.nnee.p_pr.p_atom:
//            w, c, a, aa, 
//            u, n, o, r, 
//            PRISNotification, q, ae, g

public class cls_ad extends cls_b
{

    public ad()
    {
        super("feed");
        super.b("xmlns", "http://www.w3.org/2005/Atom");
        super.b("xmlns:pris", "http://www.163.com/pris/1.0");
    }

    private void a(n n1)
    {
        if(d == null)
            d = new LinkedList();
        d.add(n1);
    }

    private void a(cls_o o1)
    {
        if(j == null)
            j = new LinkedList();
        j.add(o1);
    }

    private void a(r r1)
    {
        if(k == null)
            k = new LinkedList();
        k.add(r1);
    }

    public final c B()
    {
        cls_c c1;
        if(h())
            c1 = m.a();
        else
            c1 = com.nnee.p_pr.p_atom.c.b;
        return c1;
    }

    public final String C()
    {
        String s1;
        if(s())
            s1 = n.d();
        else
            s1 = null;
        return s1;
    }

    public final int D()
    {
        int i1;
        if(s())
            i1 = n.g();
        else
            i1 = 0;
        return i1;
    }

    public final aa E()
    {
        aa aa1;
        if(s())
            aa1 = n.e();
        else
            aa1 = aa.c;
        return aa1;
    }

    public final boolean F()
    {
        boolean flag;
        if(s())
            flag = n.f();
        else
            flag = false;
        return flag;
    }

    public String G()
    {
        if(b == null) goto _L2; else goto _L1
_L1:
        cls_b b1 = b.c("name");
        if(b1 == null) goto _L2; else goto _L3
_L3:
        String s1 = b1.A();
_L5:
        return s1;
_L2:
        s1 = null;
        if(true) goto _L5; else goto _L4
_L4:
    }

    public int H()
    {
        return j.size();
    }

    public int I()
    {
        int i1;
        if(g())
            i1 = o.g();
        else
            i1 = 0;
        return i1;
    }

    public long J()
    {
        long l1;
        if(g())
            l1 = o.h();
        else
            l1 = 0L;
        return l1;
    }

    public int K()
    {
        int i1;
        if(g())
            i1 = o.i();
        else
            i1 = 0;
        return i1;
    }

    public int L()
    {
        int i1;
        if(g())
            i1 = o.j();
        else
            i1 = 0;
        return i1;
    }

    public LinkedList M()
    {
        return d;
    }

    public cls_b a(String s1, String s2)
    {
        Object obj = new cls_b(s1, s2);
        if(!TextUtils.isEmpty(s1)) goto _L2; else goto _L1
_L1:
        Object obj1;
        if(s2 != null)
            ((b) (obj)).g(s2);
        obj1 = d(((b) (obj)));
_L4:
        return ((b) (obj1));
_L2:
        switch(s1.charAt(0))
        {
      
        case 97: // 'a'
            if(s1.equals("author"))
                b = ((b) (obj));
            break; /* Loop/switch isn't completed */

        case 101: // 'e'
            if(s1.equals("entry"))
            {
                obj1 = new cls_u();
                break;
            }
            break; /* Loop/switch isn't completed */

        case 105: // 'i'
            if(s1.equals("id"))
                a = ((b) (obj));
            break; /* Loop/switch isn't completed */

        case 108: // 'l'
            if(s1.equals("link"))
            {
                obj = new cls_n();
                a(((n) (obj)));
            }
            break; /* Loop/switch isn't completed */

        case 111: // 'o'
            if(s1.equals("opensearch:itemsPerPage"))
            {
                if(o == null)
                    o = new cls_a();
                o.a(((b) (obj)));
            } else
            if(s1.equals("opensearch:Query"))
            {
                if(o == null)
                    o = new cls_a();
                o.d(((b) (obj)));
            } else
            if(s1.equals("opensearch:startIndex"))
            {
                if(o == null)
                    o = new cls_a();
                o.b(((b) (obj)));
            } else
            if(s1.equals("opensearch:totalResults"))
            {
                if(o == null)
                    o = new cls_a();
                o.c(((b) (obj)));
            }
            break; /* Loop/switch isn't completed */

        case 112: // 'p'
            if(s1.equals("pris:ok"))
            {
                obj = new cls_o();
                a(((o) (obj)));
            } else
            if(s1.equals("pris:error"))
            {
                obj = new cls_r();
                a(((r) (obj)));
            } else
            if(s1.equals("pris:entry_status"))
            {
                m = new cls_w();
                obj = m;
            } else
            if(s1.equals("pris:subscribe"))
            {
                n = new com.nnee.p_pr.p_atom.a();
                obj = n;
            } else
            if(s1.equals("pris:notification"))
            {
                p = new PRISNotification();
                obj = p;
            }
            break; /* Loop/switch isn't completed */

        case 116: // 't'
            if(s1.equals("title"))
                c = ((b) (obj));
            break; /* Loop/switch isn't completed */

        case 117: // 'u'
            if(s1.equals("updated"))
            {
                l = new cls_q();
                obj = l;
            }
            break; /* Loop/switch isn't completed */
        default:
            break; /* Loop/switch isn't completed */

        }
        if(true) goto _L4; else goto _L3
_L3:
        if(true) goto _L1; else goto _L5
_L5:
    }

    public n a(cls_g g1)
    {
        if(d == null) goto _L2; else goto _L1
_L1:
        Iterator iterator = d.iterator();
_L5:
        if(!iterator.hasNext()) goto _L2; else goto _L3
_L3:
        n n1 = (n)iterator.next();
        if(n1 == null || n1.s() != g1) goto _L5; else goto _L4
_L4:
        return n1;
_L2:
        n1 = null;
        if(true) goto _L4; else goto _L6
_L6:
    }

    public cls_q a()
    {
        return l;
    }

    public o b(int i1)
    {
        cls_o o1;
        if(i1 < 0 || i1 >= H())
            o1 = null;
        else
            o1 = (o)j.get(i1);
        return o1;
    }

    public final String b(cls_g g1)
    {
        n n1 = a(g1);
        String s1;
        if(n1 != null)
            s1 = n1.a();
        else
            s1 = null;
        return s1;
    }

    public void b(String s1, String s2)
    {
        if(!"xmlns".equals(s1) && !"xmlns:pris".equals(s1))
            super.b(s1, s2);
    }

    public boolean b()
    {
        boolean flag;
        if(a != null)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public boolean c()
    {
        boolean flag;
        if(b != null)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public boolean d()
    {
        boolean flag;
        if(c != null)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public boolean e()
    {
        boolean flag;
        if(l != null)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public boolean f()
    {
        boolean flag;
        if(d != null && !d.isEmpty())
            flag = true;
        else
            flag = false;
        return flag;
    }

    public boolean g()
    {
        boolean flag;
        if(o != null)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public void h(String s1)
    {
        if(a != null)
            a.g(s1);
        else
            a("id", s1);
    }

    public boolean h()
    {
        boolean flag;
        if(m != null)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public void i()
    {
        if(b != null)
            b = null;
        if(d != null)
        {
            d.clear();
            d = null;
        }
        if(j != null)
        {
            j.clear();
            j = null;
        }
        if(k != null)
        {
            k.clear();
            k = null;
        }
    }

    public boolean s()
    {
        boolean flag;
        if(n != null)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public List t()
    {
        List list;
        if(p == null)
            list = null;
        else
            list = p.a();
        return list;
    }

    public cls_PRISNotification u()
    {
        return p;
    }

    public String v()
    {
        String s1;
        if(d())
            s1 = c.A();
        else
            s1 = null;
        return s1;
    }

    public String w()
    {
        String s1;
        if(a != null)
            s1 = a.A();
        else
            s1 = null;
        return s1;
    }

    public String x()
    {
        String s1;
        if(l != null)
            s1 = l.b();
        else
            s1 = null;
        return s1;
    }

    public int y()
    {
        cls_c c1 = B();
        com.nnee.p_pr.p_atom.ae.a[c1.ordinal()];
        JVM INSTR tableswitch 1 4: default 44
    //                   1 50
    //                   2 57
    //                   3 57
    //                   4 64;
           goto _L1 _L2 _L3 _L3 _L4
_L1:
        char c2 = '\u0100';
_L6:
        return c2;
_L2:
        c2 = '\u0200';
        continue; /* Loop/switch isn't completed */
_L3:
        c2 = '\u0800';
        continue; /* Loop/switch isn't completed */
_L4:
        c2 = '\u0400';
        if(true) goto _L6; else goto _L5
_L5:
    }

    public static final int q = 256;
    public static final int r = 512;
    public static final int s = 1024;
    public static final int t = 2048;
    b a;
    cls_b b;
    b c;
    LinkedList d;
    LinkedList j;
    LinkedList k;
    q l;
    w m;
    com.nnee.p_pr.p_atom.a n;
    a o;
    PRISNotification p;
}
